package com.travelgroup.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.travelgroup.domain.dto.LocationDTO;
import com.travelgroup.domain.entity.District;
import com.travelgroup.domain.entity.Location;
import com.travelgroup.exception.R;

import java.util.List;

public interface ILocationService extends IService<Location> {
    Location getByRedis(Long id);

    R<List<District>> getAdministrative(Integer current, Integer size, LocationDTO searchDTO) throws JsonProcessingException;

    R<List<Location>> getAttractions(Integer current, Integer size, LocationDTO searchDTO) throws JsonProcessingException;
}
